<div class="units">
	
	<?php if(!empty($units)): ?>
	<ul>
		<?php foreach($units as $unit): ?>
			<?php if($session->profile == 'teacher'):?>	
				<li><a href="<?php echo WWW_APP.'units/edit/unit/'.$unit->id; ?>"><?php echo $unit->name;?></a></li>
			<?php else:?>
				<li><a href="<?php echo WWW_APP.'units/vision/unit/'.$unit->id; ?>"><?php echo $unit->name;?></a></li>
			<?php endif;?>	
		<?php endforeach;?>		
	</ul>
	<?php else:?>
		Nenhum objeto de aprendizagem cadastrado.	
		<br class="clear" />
	<?php endif;?>
	
	<br class="clear" />
	
	<?php if($session->profile == 'teacher'):?>	
		<div class="links">
			<a href="add">+ Novo OA</a>
		</div>
	<?php endif;?>
	
</div>